home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / text_buf.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  571b  |  27 lines

  1. #ifndef __TEXT_BUFFER_H_
  2. #define __TEXT_BUFFER_H_
  3.  
  4. #include "simple.h"
  5. #include "geom.h"
  6. #include <alloc.h>
  7.  
  8. #define PAGE_WIDTH 80
  9. #define PAGE_HEIGHT 60
  10.  
  11. /* We build 60 x 80 page in memory and print to it information of
  12.       different types. It is text mode printing.
  13. */
  14.  
  15. struct TextPage
  16.     {
  17.     uchar** page;         // Work area in memory: uchar[80][60]
  18.  
  19.     TextPage();
  20.     ~TextPage();
  21.  
  22.     int putText(loc pos, uchar* txt); // Return 0 or curr. pos. of Y overflow
  23.     int draw_bar(rect r, char c = '*');
  24.  
  25.     };
  26.  
  27. #endif __TEXT_BUFFER_H_